package com.jprocms.module.cms.convert.investigateopinion;

import com.jpro.framework.common.pojo.PageResult;
import com.jprocms.module.cms.controller.admin.investigateopinion.vo.InvestigateOpinionCreateReqVO;
import com.jprocms.module.cms.controller.admin.investigateopinion.vo.InvestigateOpinionExcelVO;
import com.jprocms.module.cms.controller.admin.investigateopinion.vo.InvestigateOpinionRespVO;
import com.jprocms.module.cms.controller.admin.investigateopinion.vo.InvestigateOpinionUpdateReqVO;
import com.jprocms.module.cms.dal.dataobject.investigateopinion.InvestigateOpinionDO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 问卷调查提交反馈 Convert
 *
 * @author jprocms
 */
@Mapper
public interface InvestigateOpinionConvert {

    InvestigateOpinionConvert INSTANCE = Mappers.getMapper(InvestigateOpinionConvert.class);

    InvestigateOpinionDO convert(InvestigateOpinionCreateReqVO bean);

    InvestigateOpinionDO convert(InvestigateOpinionUpdateReqVO bean);

    InvestigateOpinionRespVO convert(InvestigateOpinionDO bean);

    List<InvestigateOpinionRespVO> convertList(List<InvestigateOpinionDO> list);

    PageResult<InvestigateOpinionRespVO> convertPage(PageResult<InvestigateOpinionDO> page);

    List<InvestigateOpinionExcelVO> convertList02(List<InvestigateOpinionDO> list);

}
